
<!-- 引入 layui.css -->
<link rel="stylesheet" href="http://unpkg.com/layui@2.6.8/dist/css/layui.css">

<!-- 引入 layui.js -->
<script src="http://unpkg.com/layui@2.6.8/dist/layui.js"/>
<%--
  Created by IntelliJ IDEA.
  User: zyh
  Date: 2021/12/1
  Time: 20:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script src="/static/js/jquery-3.4.1.min.js"></script>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
</head>
<body>
<form class="layui-form" action="/emp/login"> <!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->
    <div class="layui-form-item">
        <label class="layui-form-label">账号</label>
        <div class="layui-input-block">
            <input type="text" name="ename" placeholder="请输入" autocomplete="off" class="layui-input">
        </div>
    </div>\
    <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-block">
            <input type="password" name="pwd" placeholder="请输入" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit lay-filter="*">立即提交</button>
        </div>
    </div>
    <!-- 更多表单结构排版请移步文档左侧【页面元素-表单】一项阅览 -->
</form>
<script src="layui.js"></script>
<script>
    layui.use('form', function(){
        var form = layui.form;

        //各种基于事件的操作，下面会有进一步介绍
    });
</script>
</body>
</html>
